import { BasicLayout, BlankLayout, ContentLayout } from '@/views/layouts'
export default {
  path: '/defaultPage',
  name: 'defaultPage',
  component: BasicLayout,
  redirect: '/defaultPage/front',
  meta:{
    title: '公共页面',
    type: 0
  },
  children: [
    {
      path: '/defaultPage/front',
      name: 'defaultPage-front',
      component: () => import(/* webpackChunkName: 'defaultPage_front' */'@/views/defaultPage/WorkbenchFront'),
      meta: {
        title: '工作台',
        keepAlive: true,
        icon: 'alert-outlined',
        permission: false,
        sideLayout: false
      }
    },
    {
      path: '/defaultPage/versionUpdate',
      name: 'defaultPage-versionUpdate',
      component: () => import(/* webpackChunkName: 'defaultPage_versionUpdate' */'@/views/defaultPage/VersionUpdate'),
      meta: {
        title: '版本更新',
        keepAlive: true,
        permission: false,
        sideLayout: false
      }
    },
    {
      path: '/defaultPage/self',
      name: 'defaultPage-self',
      component: () => import(/* webpackChunkName: 'defaultPage_self' */'@/views/defaultPage/SelfManage'),
      meta: {
        title: '个人管理',
        keepAlive: true,
        permission: false,
        sideLayout: false
      }
    },
    {
      path: '/defaultPage/demo',
      name: 'defaultPage-demo',
      component: ContentLayout,
      meta: {
        title: '示例',
        keepAlive: true,
        icon: 'alert-outlined',
        permission: false
      },
      children: [
        {
          path: '/defaultPage/demo/1',
          name: 'defaultPage-demo-404',
          component: () => import(/* webpackChunkName: 'exception404' */ '@/views/exception/Exception404'),
          meta: {
            title: '404无法找到页面',
            keepAlive: false,
            icon: 'shopping-outlined'
          }
        },
        {
          path: '/defaultPage/demo/2',
          name: 'defaultPage-demo-403',
          component: () => import(/* webpackChunkName: 'exception403' */ '@/views/exception/Exception403'),
          meta: {
            title: '403拒绝访问',
            keepAlive: false
          }
        },
        {
          path: '/defaultPage/demo/3',
          name: 'defaultPage-demo-500',
          component: () => import(/* webpackChunkName: 'exception500' */ '@/views/exception/Exception500'),
          meta: {
            title: '500服务器的内部错误sfasfsa',
            keepAlive: false
          }
        }
      ]
    }
  ]
}
